package com.waterms.dao;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import java.util.*;


import com.waterms.model.User;

public class UserDaoImpl extends HibernateDaoSupport implements UserDao {

	public void addUser(User user) {
		this.getHibernateTemplate().save(user);
	}
	
	public List<User> checkUsername(String username){
		return (List<User>)this.getHibernateTemplate().find("from User u where u.username = ?", username);
	}

}
